package com.yh.ldzl.service;

import java.util.List;
import java.util.Map;

import com.yh.ldzl.domain.QcDefectRecord;
import org.apache.ibatis.annotations.Param;

/**
 * 检验单缺陷记录Service接口
 * 
 * @author yanghuai
 * @date 2025-07-06
 */
public interface IQcDefectRecordService 
{
    /**
     * 查询检验单缺陷记录
     * 
     * @param recordId 检验单缺陷记录主键
     * @return 检验单缺陷记录
     */
    public QcDefectRecord selectQcDefectRecordByRecordId(Long recordId);

    /**
     * 查询检验单缺陷记录列表
     * 
     * @param qcDefectRecord 检验单缺陷记录
     * @return 检验单缺陷记录集合
     */
    public List<QcDefectRecord> selectQcDefectRecordList(QcDefectRecord qcDefectRecord);

    /**
     * 新增检验单缺陷记录
     * 
     * @param qcDefectRecord 检验单缺陷记录
     * @return 结果
     */
    public  boolean insertQcDefectRecord(QcDefectRecord qcDefectRecord);

    /**
     * 修改检验单缺陷记录
     * 
     * @param qcDefectRecord 检验单缺陷记录
     * @return 结果
     */
    public boolean updateQcDefectRecord(QcDefectRecord qcDefectRecord);

    /**
     * 批量删除检验单缺陷记录
     * 
     * @param recordIds 需要删除的检验单缺陷记录主键集合
     * @return 结果
     */
    public boolean deleteQcDefectRecordByRecordIds(Long[] recordIds);

    /**
     * 删除检验单缺陷记录信息
     * 
     * @param recordId 检验单缺陷记录主键
     * @return 结果
     */
    public boolean deleteQcDefectRecordByRecordId(Long recordId);


    /**
     * 查询检验单缺陷记录
     *
     * @param qc_id 检验单缺陷记录主键
     * @return 检验单缺陷记录
     */
    List<Map<String, Object>> selectQcDefectRecord( Long qc_id);
}
